package work_a;

import java.util.Comparator;
import java.util.Random;
import java.util.TreeSet;

public class TreeSet_test {
    public static void main(String[] args) {
        TreeSet<Integer> number = new TreeSet<>();
        Random random = new Random();
        for (int i = 0; i <11 ; i++) {
            int r = random.nextInt(51);
            number.add(r);
        }
        System.out.println(number);

        System.out.println("==============================");

            }

}



